<div id="chat_reply_checker_settings">
    <div class="inline-drawer">
        <div class="inline-drawer-toggle inline-drawer-header">
            <b>聊天回复检查器</b>
            <div class="inline-drawer-icon fa-solid fa-circle-chevron-down down"></div>
        </div>
        <div class="inline-drawer-content">
            <div class="chat_reply_checker_block flex-container">
                <input id="chat_reply_checker_enabled" type="checkbox" />
                <label for="chat_reply_checker_enabled">启用聊天回复检查</label>
            </div>
            
            <hr>
            
            <h4>API 配置</h4>
            
            <div class="chat_reply_checker_block">
                <label for="chat_reply_checker_api_url">API URL (OpenAI兼容接口)</label>
                <input id="chat_reply_checker_api_url" type="text" class="text_pole" placeholder="http://localhost:3000/v1 或 https://api.openai.com/v1" />
                <small class="notes">输入基础URL即可，插件会自动添加 /chat/completions</small>
            </div>
            
            <div class="chat_reply_checker_block">
                <label for="chat_reply_checker_api_key">API Key</label>
                <input id="chat_reply_checker_api_key" type="password" class="text_pole" placeholder="sk-..." />
            </div>
            
            <div class="chat_reply_checker_block">
                <label for="chat_reply_checker_model">模型</label>
                <input id="chat_reply_checker_model" type="text" class="text_pole" placeholder="gpt-3.5-turbo" />
            </div>
            
            <div class="chat_reply_checker_block">
                <label for="chat_reply_checker_max_tokens">
                    最大Token数: <span id="chat_reply_checker_max_tokens_value"></span>
                </label>
                <input id="chat_reply_checker_max_tokens" type="range" min="100" max="20000" step="50" />
            </div>
            
            <div class="chat_reply_checker_block">
                <label for="chat_reply_checker_temperature">
                    温度: <span id="chat_reply_checker_temperature_value"></span>
                </label>
                <input id="chat_reply_checker_temperature" type="range" min="0" max="2" step="0.1" />
            </div>
            
            <div class="chat_reply_checker_block">
                <label for="chat_reply_checker_context_messages">
                    上下文消息数量: <span id="chat_reply_checker_context_messages_value"></span>
                </label>
                <input id="chat_reply_checker_context_messages" type="range" min="0" max="10" step="1" />
                <small class="notes">设置为0表示不提供上下文，最多可提供10条历史消息作为上下文</small>
            </div>
            
            <div class="chat_reply_checker_block">
                <label for="chat_reply_checker_system_prompt">系统提示词</label>
                <textarea id="chat_reply_checker_system_prompt" class="text_pole" rows="6"></textarea>
            </div>
            
            <hr>
            
            <div class="chat_reply_checker_block">
                <div class="flex-container">
                    <div class="menu_button" id="chat_reply_checker_test">测试检查</div>
                    <div class="menu_button" id="chat_reply_checker_fix_now">立即修复</div>
                </div>
            </div>
        </div>
    </div>
</div> 